package com.wys.proxydemo.myjdk;

import com.wys.proxydemo.common.Person;
import com.wys.proxydemo.common.Son;

/**
 * @author godShan
 * @Description:
 * @date 2019/5/6 10:23
 */
public class Test {

    public static void main(String[] args) {

        //这个是使用 jdk动态代理厨师的案例
        Person person = (Person) new GSChuShi().getInstance(new Son());
        System.out.println(person.eat("佛跳墙"));

    }

}
